package net.zjitc.lib;

public class MyRunnableThread implements Runnable {
    private int count=1;
    private int number;
    public MyRunnableThread(int num){
        number=num;
        System.out.println("创建线程:"+number);
    }
    @Override
    public void run() {
        while (true){
            System.out.println("线程："+number+","+"计数："+count);
            count++;
            if (count==6){
                return;
            }
//            if (++count==6)return;
        }
    }
}
